.class public Les/s30;
.super Ljava/lang/Object;
.source "GdriveFileSystemCache.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/s30$a;
    }
.end annotation


# static fields
.field private static c:Ljava/lang/String;

.field private static d:Les/s30;

.field private static final e:Les/s30;


# instance fields
.field private final a:Landroid/database/sqlite/SQLiteDatabase;

.field private final b:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    new-instance v0, Les/s30;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Les/s30;-><init>(Landroid/database/sqlite/SQLiteDatabase;)V

    sput-object v0, Les/s30;->e:Les/s30;

    return-void
.end method

.method private constructor <init>(Landroid/database/sqlite/SQLiteDatabase;)V
    .locals 1
    .param p1    # Landroid/database/sqlite/SQLiteDatabase;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Les/s30;->b:Ljava/util/HashMap;

    .line 3
    iput-object p1, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    return-void
.end method

.method private static a(Ljava/lang/String;I)Landroid/database/sqlite/SQLiteDatabase;
    .locals 5
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 1
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    const/4 v2, 0x1

    xor-int/2addr v1, v2

    const/4 v3, 0x0

    .line 3
    invoke-static {p0, v3}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    if-nez v4, :cond_0

    .line 4
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 5
    invoke-static {p0, v3}, Landroid/database/sqlite/SQLiteDatabase;->openOrCreateDatabase(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    goto :goto_0

    :cond_0
    move v2, v1

    :goto_0
    if-eqz v4, :cond_3

    if-eqz v2, :cond_1

    .line 6
    invoke-static {v4}, Les/s30;->a(Landroid/database/sqlite/SQLiteDatabase;)V

    .line 7
    invoke-virtual {v4, p1}, Landroid/database/sqlite/SQLiteDatabase;->setVersion(I)V

    goto :goto_1

    .line 8
    :cond_1
    invoke-virtual {v4}, Landroid/database/sqlite/SQLiteDatabase;->getVersion()I

    move-result p0

    if-ge p0, p1, :cond_2

    .line 9
    invoke-static {v4, p0, p1}, Les/s30;->b(Landroid/database/sqlite/SQLiteDatabase;II)V

    .line 10
    invoke-virtual {v4, p1}, Landroid/database/sqlite/SQLiteDatabase;->setVersion(I)V

    goto :goto_1

    :cond_2
    if-le p0, p1, :cond_3

    .line 11
    invoke-static {v4, p0, p1}, Les/s30;->a(Landroid/database/sqlite/SQLiteDatabase;II)V

    .line 12
    invoke-virtual {v4, p1}, Landroid/database/sqlite/SQLiteDatabase;->setVersion(I)V

    :cond_3
    :goto_1
    return-object v4
.end method

.method public static declared-synchronized a()Les/s30;
    .locals 4
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    const-class v0, Les/s30;

    monitor-enter v0

    .line 15
    :try_start_0
    sget-object v1, Les/s30;->d:Les/s30;

    if-nez v1, :cond_3

    .line 16
    sget-object v1, Les/s30;->c:Ljava/lang/String;

    if-nez v1, :cond_0

    .line 17
    sget-object v1, Les/s30;->e:Les/s30;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object v1

    .line 18
    :cond_0
    :try_start_1
    new-instance v1, Ljava/io/File;

    sget-object v2, Les/s30;->c:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 19
    :try_start_2
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_1

    .line 20
    invoke-virtual {v1}, Ljava/io/File;->mkdirs()Z

    .line 21
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Les/s30;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "Gdrive_cachedb_new"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x2

    invoke-static {v2, v3}, Les/s30;->a(Ljava/lang/String;I)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v2

    if-nez v2, :cond_2

    .line 22
    sget-object v1, Les/s30;->e:Les/s30;
    :try_end_2
    .catch Landroid/database/sqlite/SQLiteDiskIOException; {:try_start_2 .. :try_end_2} :catch_1
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit v0

    return-object v1

    .line 23
    :cond_2
    :try_start_3
    new-instance v3, Les/s30;

    invoke-direct {v3, v2}, Les/s30;-><init>(Landroid/database/sqlite/SQLiteDatabase;)V

    sput-object v3, Les/s30;->d:Les/s30;
    :try_end_3
    .catch Landroid/database/sqlite/SQLiteDiskIOException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_0

    .line 24
    :catch_0
    :try_start_4
    sget-object v1, Les/s30;->e:Les/s30;
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    monitor-exit v0

    return-object v1

    .line 25
    :catch_1
    :try_start_5
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 26
    sget-object v1, Les/s30;->e:Les/s30;
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    monitor-exit v0

    return-object v1

    .line 27
    :cond_3
    :goto_0
    :try_start_6
    sget-object v1, Les/s30;->d:Les/s30;
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method private static a(Landroid/database/sqlite/SQLiteDatabase;)V
    .locals 1

    const-string v0, "CREATE TABLE IF NOT EXISTS server_id (id INTEGER PRIMARY KEY,server TEXT UNIQUE)"

    .line 13
    invoke-virtual {p0, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    const-string v0, "CREATE TABLE IF NOT EXISTS file_cache (id INTEGER PRIMARY KEY,server_id INTEGER,path TEXT,isdir INTEGER,hash  TEXT,mtime  INTEGER,parent_id  INTEGER,checktime INTEGER,size INTEGER,parent_count INTEGER,dir_type TEXT,present INTEGER,urlid TEXT,url TEXT,etag TEXT,murl TEXT,curl TEXT,entry_id TEXT,thumb_url TEXT,web_url TEXT,location_url TEXT)"

    .line 14
    invoke-virtual {p0, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    return-void
.end method

.method private static a(Landroid/database/sqlite/SQLiteDatabase;II)V
    .locals 0

    return-void
.end method

.method private static b(Landroid/database/sqlite/SQLiteDatabase;II)V
    .locals 0

    if-eqz p1, :cond_0

    const/4 p2, 0x1

    if-eq p1, p2, :cond_0

    goto :goto_0

    :cond_0
    const-string p1, "ALTER TABLE file_cache ADD location_url TEXT"

    .line 1
    invoke-virtual {p0, p1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method public static d(Ljava/lang/String;)V
    .locals 1

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "/"

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    sput-object p0, Les/s30;->c:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public a(II)Les/s30$a;
    .locals 21

    move-object/from16 v1, p0

    .line 58
    iget-object v0, v1, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v2, 0x0

    if-nez v0, :cond_0

    return-object v2

    :cond_0
    const/16 v0, 0x13

    :try_start_0
    new-array v5, v0, [Ljava/lang/String;

    const-string v0, "path"

    const/4 v11, 0x0

    aput-object v0, v5, v11

    const-string v0, "parent_id"

    const/4 v12, 0x1

    aput-object v0, v5, v12

    const-string v0, "isdir"

    const/4 v13, 0x2

    aput-object v0, v5, v13

    const-string v0, "hash"

    const/4 v14, 0x3

    aput-object v0, v5, v14

    const-string v0, "mtime"

    const/4 v15, 0x4

    aput-object v0, v5, v15

    const-string v0, "size"

    const/4 v10, 0x5

    aput-object v0, v5, v10

    const-string v0, "checktime"

    const/4 v9, 0x6

    aput-object v0, v5, v9

    const-string v0, "dir_type"

    const/4 v8, 0x7

    aput-object v0, v5, v8

    const-string v0, "url"

    const/16 v7, 0x8

    aput-object v0, v5, v7

    const-string v0, "present"

    const/16 v6, 0x9

    aput-object v0, v5, v6

    const-string v0, "urlid"

    const/16 v4, 0xa

    aput-object v0, v5, v4

    const-string v0, "etag"

    const/16 v3, 0xb

    aput-object v0, v5, v3

    const-string v0, "murl"
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    const/16 v2, 0xc

    :try_start_1
    aput-object v0, v5, v2

    const-string v0, "curl"

    const/16 v2, 0xd

    aput-object v0, v5, v2

    const-string v0, "entry_id"

    const/16 v2, 0xe

    aput-object v0, v5, v2

    const-string v0, "thumb_url"

    const/16 v2, 0xf

    aput-object v0, v5, v2

    const-string v0, "web_url"

    const/16 v2, 0x10

    aput-object v0, v5, v2

    const-string v0, "parent_count"

    const/16 v2, 0x11

    aput-object v0, v5, v2

    const-string v0, "location_url"

    const/16 v2, 0x12

    aput-object v0, v5, v2

    const-string v0, "server_id=? AND id=?"

    new-array v7, v13, [Ljava/lang/String;

    .line 59
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v7, v11

    .line 60
    invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v7, v12

    .line 61
    iget-object v3, v1, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v17, "file_cache"

    const/16 v18, 0x0

    const/16 v19, 0x0

    const/16 v20, 0x0

    const/16 v2, 0xb

    const/16 v2, 0xa

    move-object/from16 v4, v17

    const/16 v2, 0x9

    move-object v6, v0

    const/16 v0, 0x8

    const/4 v2, 0x7

    move-object/from16 v8, v18

    const/4 v0, 0x6

    move-object/from16 v9, v19

    const/4 v2, 0x5

    move-object/from16 v10, v20

    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v3
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v3, :cond_2

    .line 62
    :try_start_2
    invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v4

    if-eqz v4, :cond_2

    .line 63
    new-instance v4, Les/s30$a;

    invoke-direct {v4}, Les/s30$a;-><init>()V

    move/from16 v5, p2

    .line 64
    iput v5, v4, Les/s30$a;->a:I

    move/from16 v5, p1

    .line 65
    iput v5, v4, Les/s30$a;->b:I

    .line 66
    invoke-interface {v3, v11}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Les/s30$a;->d:Ljava/lang/String;

    .line 67
    invoke-interface {v3, v12}, Landroid/database/Cursor;->getInt(I)I

    move-result v5

    iput v5, v4, Les/s30$a;->c:I

    .line 68
    invoke-interface {v3, v13}, Landroid/database/Cursor;->getInt(I)I

    move-result v5

    iput v5, v4, Les/s30$a;->e:I

    .line 69
    invoke-interface {v3, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Les/s30$a;->f:Ljava/lang/String;

    .line 70
    invoke-interface {v3, v15}, Landroid/database/Cursor;->getInt(I)I

    move-result v5

    iput v5, v4, Les/s30$a;->g:I

    .line 71
    invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v2

    int-to-long v5, v2

    iput-wide v5, v4, Les/s30$a;->h:J

    .line 72
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v4, Les/s30$a;->i:I

    const/4 v0, 0x7

    .line 73
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v4, Les/s30$a;->j:I

    const/16 v0, 0x8

    .line 74
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->n:Ljava/lang/String;

    const/16 v0, 0x9

    .line 75
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v4, Les/s30$a;->l:I

    const/16 v0, 0xa

    .line 76
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->m:Ljava/lang/String;

    const/16 v0, 0xb

    .line 77
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->o:Ljava/lang/String;

    const/16 v0, 0xc

    .line 78
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->p:Ljava/lang/String;

    const/16 v0, 0xd

    .line 79
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->q:Ljava/lang/String;

    const/16 v0, 0xe

    .line 80
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->r:Ljava/lang/String;

    const/16 v0, 0xf

    .line 81
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->s:Ljava/lang/String;

    const/16 v0, 0x10

    .line 82
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->t:Ljava/lang/String;

    const/16 v0, 0x11

    .line 83
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v4, Les/s30$a;->k:I

    const/16 v0, 0x12

    .line 84
    invoke-interface {v3, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Les/s30$a;->u:Ljava/lang/String;

    .line 85
    iget v0, v4, Les/s30$a;->l:I

    and-int/2addr v0, v12

    if-lez v0, :cond_1

    const/4 v11, 0x1

    :cond_1
    iput-boolean v11, v4, Les/s30$a;->w:Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 86
    invoke-static {v3}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-object v4

    :catchall_0
    move-exception v0

    move-object v2, v3

    goto :goto_0

    :cond_2
    invoke-static {v3}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    const/4 v2, 0x0

    return-object v2

    :catchall_1
    move-exception v0

    const/4 v2, 0x0

    goto :goto_0

    :catchall_2
    move-exception v0

    :goto_0
    invoke-static {v2}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 87
    throw v0
.end method

.method public a(ILjava/lang/String;)Les/s30$a;
    .locals 21

    move-object/from16 v1, p0

    move-object/from16 v0, p2

    .line 88
    iget-object v2, v1, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v3, 0x0

    if-nez v2, :cond_0

    return-object v3

    .line 89
    :cond_0
    invoke-virtual/range {p2 .. p2}, Ljava/lang/String;->length()I

    move-result v2

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-le v2, v5, :cond_1

    const-string v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 90
    invoke-virtual/range {p2 .. p2}, Ljava/lang/String;->length()I

    move-result v2

    sub-int/2addr v2, v5

    invoke-virtual {v0, v4, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :cond_1
    const/16 v2, 0x13

    :try_start_0
    new-array v8, v2, [Ljava/lang/String;

    const-string v2, "id"

    aput-object v2, v8, v4

    const-string v2, "parent_id"

    aput-object v2, v8, v5

    const-string v2, "isdir"

    const/4 v14, 0x2

    aput-object v2, v8, v14

    const-string v2, "hash"

    const/4 v15, 0x3

    aput-object v2, v8, v15

    const-string v2, "mtime"

    const/4 v13, 0x4

    aput-object v2, v8, v13

    const-string v2, "size"

    const/4 v12, 0x5

    aput-object v2, v8, v12

    const-string v2, "checktime"

    const/4 v11, 0x6

    aput-object v2, v8, v11

    const-string v2, "dir_type"

    const/4 v10, 0x7

    aput-object v2, v8, v10

    const-string v2, "url"

    const/16 v9, 0x8

    aput-object v2, v8, v9

    const-string v2, "present"

    const/16 v7, 0x9

    aput-object v2, v8, v7

    const-string v2, "urlid"

    const/16 v6, 0xa

    aput-object v2, v8, v6

    const-string v2, "etag"
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    const/16 v3, 0xb

    :try_start_1
    aput-object v2, v8, v3

    const-string v2, "murl"

    const/16 v3, 0xc

    aput-object v2, v8, v3

    const-string v2, "curl"

    const/16 v3, 0xd

    aput-object v2, v8, v3

    const-string v2, "entry_id"

    const/16 v3, 0xe

    aput-object v2, v8, v3

    const-string v2, "thumb_url"

    const/16 v3, 0xf

    aput-object v2, v8, v3

    const-string v2, "web_url"

    const/16 v3, 0x10

    aput-object v2, v8, v3

    const-string v2, "parent_count"

    const/16 v3, 0x11

    aput-object v2, v8, v3

    const-string v2, "location_url"

    const/16 v3, 0x12

    aput-object v2, v8, v3

    const-string v2, "server_id=? AND path=?"

    new-array v10, v14, [Ljava/lang/String;

    .line 91
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v10, v4

    aput-object v0, v10, v5

    .line 92
    iget-object v6, v1, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v17, "file_cache"

    const/16 v18, 0x0

    const/16 v19, 0x0

    const/16 v20, 0x0

    const/16 v3, 0xa

    const/16 v3, 0x9

    move-object/from16 v7, v17

    const/16 v3, 0x8

    move-object v9, v2

    const/4 v2, 0x7

    const/4 v3, 0x6

    move-object/from16 v11, v18

    const/4 v2, 0x5

    move-object/from16 v12, v19

    const/4 v3, 0x4

    move-object/from16 v13, v20

    invoke-virtual/range {v6 .. v13}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v6, :cond_2

    .line 93
    :try_start_2
    invoke-interface {v6}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v7

    if-eqz v7, :cond_2

    .line 94
    new-instance v7, Les/s30$a;

    invoke-direct {v7}, Les/s30$a;-><init>()V

    .line 95
    invoke-interface {v6, v4}, Landroid/database/Cursor;->getInt(I)I

    move-result v4

    iput v4, v7, Les/s30$a;->a:I

    move/from16 v4, p1

    .line 96
    iput v4, v7, Les/s30$a;->b:I

    .line 97
    iput-object v0, v7, Les/s30$a;->d:Ljava/lang/String;

    .line 98
    invoke-interface {v6, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->c:I

    .line 99
    invoke-interface {v6, v14}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->e:I

    .line 100
    invoke-interface {v6, v15}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->f:Ljava/lang/String;

    .line 101
    invoke-interface {v6, v3}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->g:I

    .line 102
    invoke-interface {v6, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    int-to-long v2, v0

    iput-wide v2, v7, Les/s30$a;->h:J

    const/4 v0, 0x6

    .line 103
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->i:I

    const/4 v0, 0x7

    .line 104
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->j:I

    const/16 v0, 0x8

    .line 105
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->n:Ljava/lang/String;

    const/16 v0, 0x9

    .line 106
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->l:I

    const/16 v0, 0xa

    .line 107
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->m:Ljava/lang/String;

    const/16 v0, 0xb

    .line 108
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->o:Ljava/lang/String;

    const/16 v0, 0xc

    .line 109
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->p:Ljava/lang/String;

    const/16 v0, 0xd

    .line 110
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->q:Ljava/lang/String;

    const/16 v0, 0xe

    .line 111
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->r:Ljava/lang/String;

    const/16 v0, 0xf

    .line 112
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->s:Ljava/lang/String;

    const/16 v0, 0x10

    .line 113
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->t:Ljava/lang/String;

    const/16 v0, 0x11

    .line 114
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v7, Les/s30$a;->k:I

    const/16 v0, 0x12

    .line 115
    invoke-interface {v6, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v7, Les/s30$a;->u:Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 116
    invoke-static {v6}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-object v7

    :catchall_0
    move-exception v0

    move-object v3, v6

    goto :goto_0

    :cond_2
    invoke-static {v6}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    const/4 v2, 0x0

    return-object v2

    :catchall_1
    move-exception v0

    const/4 v2, 0x0

    move-object v3, v2

    goto :goto_0

    :catchall_2
    move-exception v0

    move-object v2, v3

    :goto_0
    invoke-static {v3}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 117
    throw v0
.end method

.method public a(IILjava/util/HashMap;Ljava/util/HashMap;Z)V
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/s30$a;",
            ">;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/s30$a;",
            ">;Z)V"
        }
    .end annotation

    if-nez p4, :cond_0

    return-void

    .line 130
    :cond_0
    invoke-virtual {p4}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object p4

    invoke-interface {p4}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p4

    :goto_0
    invoke-interface {p4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_6

    invoke-interface {p4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 131
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 132
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/s30$a;

    .line 133
    iput p1, v0, Les/s30$a;->b:I

    .line 134
    iput p2, v0, Les/s30$a;->c:I

    if-nez p3, :cond_1

    const/4 v3, 0x0

    goto :goto_1

    .line 135
    :cond_1
    invoke-virtual {p3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/s30$a;

    :goto_1
    if-eqz v3, :cond_5

    .line 136
    iget v4, v3, Les/s30$a;->e:I

    iget v5, v0, Les/s30$a;->e:I

    if-ne v4, v5, :cond_3

    .line 137
    iget-wide v4, v0, Les/s30$a;->h:J

    iget-wide v6, v3, Les/s30$a;->h:J

    cmp-long v1, v4, v6

    if-nez v1, :cond_2

    iget-object v1, v0, Les/s30$a;->m:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->m:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->n:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->n:Ljava/lang/String;

    .line 138
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->r:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->r:Ljava/lang/String;

    .line 139
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->p:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->p:Ljava/lang/String;

    .line 140
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->q:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->q:Ljava/lang/String;

    .line 141
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->t:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->t:Ljava/lang/String;

    .line 142
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->s:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->s:Ljava/lang/String;

    .line 143
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v0, Les/s30$a;->u:Ljava/lang/String;

    iget-object v4, v3, Les/s30$a;->u:Ljava/lang/String;

    .line 144
    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget v1, v0, Les/s30$a;->l:I

    iget v4, v3, Les/s30$a;->l:I

    if-ne v1, v4, :cond_2

    iget v1, v0, Les/s30$a;->j:I

    iget v4, v3, Les/s30$a;->j:I

    if-ne v1, v4, :cond_2

    iget v1, v0, Les/s30$a;->g:I

    iget v4, v3, Les/s30$a;->g:I

    if-ne v1, v4, :cond_2

    iget v1, v0, Les/s30$a;->k:I

    iget v4, v3, Les/s30$a;->k:I

    if-eq v1, v4, :cond_4

    .line 145
    :cond_2
    iget v1, v3, Les/s30$a;->a:I

    iput v1, v0, Les/s30$a;->a:I

    .line 146
    invoke-virtual {p0, v0}, Les/s30;->b(Les/s30$a;)V

    goto :goto_2

    .line 147
    :cond_3
    iget v4, v3, Les/s30$a;->b:I

    invoke-virtual {p0, v4, v3, v1}, Les/s30;->a(ILes/s30$a;Z)V

    .line 148
    invoke-virtual {p0, v0}, Les/s30;->a(Les/s30$a;)V

    .line 149
    :cond_4
    :goto_2
    invoke-virtual {p3, v2}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_0

    .line 150
    :cond_5
    invoke-virtual {p0, v0}, Les/s30;->a(Les/s30$a;)V

    goto/16 :goto_0

    :cond_6
    if-eqz p3, :cond_7

    if-nez p5, :cond_7

    .line 151
    invoke-virtual {p3}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_3
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_7

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/util/Map$Entry;

    .line 152
    invoke-interface {p2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/s30$a;

    .line 153
    iget p3, p2, Les/s30$a;->b:I

    invoke-virtual {p0, p3, p2, v1}, Les/s30;->a(ILes/s30$a;Z)V

    goto :goto_3

    :cond_7
    return-void
.end method

.method public a(IILjava/util/HashMap;Z)V
    .locals 21
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/s30$a;",
            ">;Z)V"
        }
    .end annotation

    move-object/from16 v7, p0

    move/from16 v0, p1

    .line 154
    iget-object v1, v7, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v1, :cond_0

    return-void

    .line 155
    :cond_0
    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    const/16 v2, 0x13

    :try_start_0
    new-array v10, v2, [Ljava/lang/String;

    const-string v2, "id"

    const/4 v3, 0x0

    aput-object v2, v10, v3

    const-string v2, "path"

    const/4 v5, 0x1

    aput-object v2, v10, v5

    const-string v2, "isdir"

    const/4 v6, 0x2

    aput-object v2, v10, v6

    const-string v2, "hash"

    const/4 v15, 0x3

    aput-object v2, v10, v15

    const-string v2, "mtime"

    const/4 v14, 0x4

    aput-object v2, v10, v14

    const-string v2, "size"

    const/4 v13, 0x5

    aput-object v2, v10, v13

    const-string v2, "checktime"

    const/4 v12, 0x6

    aput-object v2, v10, v12

    const-string v2, "dir_type"

    const/4 v11, 0x7

    aput-object v2, v10, v11

    const-string v2, "url"

    const/16 v9, 0x8

    aput-object v2, v10, v9

    const-string v2, "present"

    const/16 v8, 0x9

    aput-object v2, v10, v8

    const-string v2, "urlid"

    const/16 v1, 0xa

    aput-object v2, v10, v1

    const-string v2, "etag"

    const/16 v1, 0xb

    aput-object v2, v10, v1

    const-string v2, "murl"

    const/16 v1, 0xc

    aput-object v2, v10, v1

    const-string v2, "curl"

    const/16 v1, 0xd

    aput-object v2, v10, v1

    const-string v2, "entry_id"

    const/16 v1, 0xe

    aput-object v2, v10, v1

    const-string v2, "thumb_url"

    const/16 v1, 0xf

    aput-object v2, v10, v1

    const-string v2, "web_url"

    const/16 v1, 0x10

    aput-object v2, v10, v1

    const-string v2, "parent_count"

    const/16 v1, 0x11

    aput-object v2, v10, v1

    const-string v2, "location_url"

    const/16 v1, 0x12

    aput-object v2, v10, v1

    const-string v2, "server_id=? AND parent_id=?"

    new-array v12, v6, [Ljava/lang/String;

    .line 156
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v12, v3

    .line 157
    invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v12, v5

    .line 158
    iget-object v8, v7, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v17, "file_cache"

    const/16 v18, 0x0

    const/16 v19, 0x0

    const/16 v20, 0x0

    const/16 v1, 0x9

    const/16 v1, 0x8

    move-object/from16 v9, v17

    const/4 v1, 0x7

    move-object v11, v2

    const/4 v2, 0x6

    const/4 v1, 0x5

    move-object/from16 v13, v18

    const/4 v2, 0x4

    move-object/from16 v14, v19

    const/4 v1, 0x3

    move-object/from16 v15, v20

    invoke-virtual/range {v8 .. v15}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v8
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-nez v8, :cond_1

    .line 159
    invoke-static {v8}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-void

    .line 160
    :cond_1
    :goto_0
    :try_start_1
    invoke-interface {v8}, Landroid/database/Cursor;->moveToNext()Z

    move-result v9

    if-eqz v9, :cond_3

    .line 161
    new-instance v9, Les/s30$a;

    invoke-direct {v9}, Les/s30$a;-><init>()V

    .line 162
    invoke-interface {v8, v3}, Landroid/database/Cursor;->getInt(I)I

    move-result v10

    iput v10, v9, Les/s30$a;->a:I

    .line 163
    iput v0, v9, Les/s30$a;->b:I

    move/from16 v10, p2

    .line 164
    iput v10, v9, Les/s30$a;->c:I

    .line 165
    invoke-interface {v8, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v9, Les/s30$a;->d:Ljava/lang/String;

    .line 166
    invoke-interface {v8, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v11

    iput v11, v9, Les/s30$a;->e:I

    .line 167
    invoke-interface {v8, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v9, Les/s30$a;->f:Ljava/lang/String;

    .line 168
    invoke-interface {v8, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v11

    iput v11, v9, Les/s30$a;->g:I

    const/4 v11, 0x5

    .line 169
    invoke-interface {v8, v11}, Landroid/database/Cursor;->getInt(I)I

    move-result v12

    int-to-long v12, v12

    iput-wide v12, v9, Les/s30$a;->h:J

    const/4 v12, 0x6

    .line 170
    invoke-interface {v8, v12}, Landroid/database/Cursor;->getInt(I)I

    move-result v13

    iput v13, v9, Les/s30$a;->i:I

    const/4 v13, 0x7

    .line 171
    invoke-interface {v8, v13}, Landroid/database/Cursor;->getInt(I)I

    move-result v14

    iput v14, v9, Les/s30$a;->j:I

    const/16 v14, 0x8

    .line 172
    invoke-interface {v8, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v15

    iput-object v15, v9, Les/s30$a;->n:Ljava/lang/String;

    const/16 v15, 0x9

    .line 173
    invoke-interface {v8, v15}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    iput v1, v9, Les/s30$a;->l:I

    const/16 v1, 0xa

    .line 174
    invoke-interface {v8, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v9, Les/s30$a;->m:Ljava/lang/String;

    const/16 v2, 0xb

    .line 175
    invoke-interface {v8, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v9, Les/s30$a;->o:Ljava/lang/String;

    const/16 v1, 0xc

    .line 176
    invoke-interface {v8, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v9, Les/s30$a;->p:Ljava/lang/String;

    const/16 v2, 0xd

    .line 177
    invoke-interface {v8, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v9, Les/s30$a;->q:Ljava/lang/String;

    const/16 v1, 0xe

    .line 178
    invoke-interface {v8, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v9, Les/s30$a;->r:Ljava/lang/String;

    const/16 v2, 0xf

    .line 179
    invoke-interface {v8, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v9, Les/s30$a;->s:Ljava/lang/String;

    const/16 v1, 0x10

    .line 180
    invoke-interface {v8, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v9, Les/s30$a;->t:Ljava/lang/String;

    const/16 v2, 0x11

    .line 181
    invoke-interface {v8, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    iput v1, v9, Les/s30$a;->k:I

    const/16 v1, 0x12

    .line 182
    invoke-interface {v8, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v9, Les/s30$a;->u:Ljava/lang/String;

    .line 183
    iget-object v2, v9, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 184
    invoke-virtual {v7, v0, v9, v5}, Les/s30;->a(ILes/s30$a;Z)V

    goto :goto_1

    .line 185
    :cond_2
    iget-object v2, v9, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v4, v2, v9}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_1
    const/4 v1, 0x3

    const/4 v2, 0x4

    goto/16 :goto_0

    :cond_3
    move/from16 v10, p2

    move-object/from16 v1, p0

    move/from16 v2, p1

    move/from16 v3, p2

    move-object/from16 v5, p3

    move/from16 v6, p4

    .line 186
    invoke-virtual/range {v1 .. v6}, Les/s30;->a(IILjava/util/HashMap;Ljava/util/HashMap;Z)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 187
    invoke-static {v8}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-void

    :catchall_0
    move-exception v0

    move-object v1, v8

    goto :goto_2

    :catchall_1
    move-exception v0

    const/4 v1, 0x0

    :goto_2
    invoke-static {v1}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 188
    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method

.method public a(ILes/s30$a;Z)V
    .locals 6

    const-string v0, "file_cache"

    const/4 v1, 0x2

    const-string v2, "server_id=? AND id=?"

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-eqz p3, :cond_0

    new-array p3, v1, [Ljava/lang/String;

    .line 118
    invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, p3, v3

    iget v5, p2, Les/s30$a;->a:I

    .line 119
    invoke-static {v5}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, p3, v4

    .line 120
    iget-object v5, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v5, v0, v2, p3}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 121
    :cond_0
    iget p3, p2, Les/s30$a;->e:I

    if-ne p3, v4, :cond_2

    .line 122
    iget p3, p2, Les/s30$a;->a:I

    invoke-virtual {p0, p1, p3}, Les/s30;->b(II)Ljava/util/HashMap;

    move-result-object p3

    new-array v1, v1, [Ljava/lang/String;

    .line 123
    invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v1, v3

    iget p2, p2, Les/s30$a;->a:I

    .line 124
    invoke-static {p2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object p2

    aput-object p2, v1, v4

    .line 125
    iget-object p2, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {p2, v0, v2, v1}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 126
    invoke-virtual {p3}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;

    move-result-object p2

    invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :cond_1
    :goto_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    if-eqz p3, :cond_2

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Ljava/util/Map$Entry;

    .line 127
    invoke-interface {p3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Les/s30$a;

    .line 128
    iget v0, p3, Les/s30$a;->e:I

    if-ne v0, v4, :cond_1

    .line 129
    invoke-virtual {p0, p1, p3, v3}, Les/s30;->a(ILes/s30$a;Z)V

    goto :goto_0

    :cond_2
    return-void
.end method

.method public a(Les/s30$a;)V
    .locals 6

    .line 32
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_2

    if-eqz p1, :cond_2

    iget-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    if-nez v0, :cond_0

    goto/16 :goto_0

    .line 33
    :cond_0
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-le v0, v2, :cond_1

    iget-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    const-string v3, "/"

    invoke-virtual {v0, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 34
    iget-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v2

    invoke-virtual {v0, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    .line 35
    :cond_1
    new-instance v0, Landroid/content/ContentValues;

    const/16 v3, 0x14

    invoke-direct {v0, v3}, Landroid/content/ContentValues;-><init>(I)V

    .line 36
    iget v3, p1, Les/s30$a;->b:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "server_id"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 37
    iget-object v3, p1, Les/s30$a;->d:Ljava/lang/String;

    const-string v4, "path"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 38
    iget v3, p1, Les/s30$a;->e:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "isdir"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 39
    iget-object v3, p1, Les/s30$a;->f:Ljava/lang/String;

    const-string v4, "hash"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 40
    iget v3, p1, Les/s30$a;->g:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "mtime"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 41
    iget-wide v3, p1, Les/s30$a;->h:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    const-string v4, "size"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    .line 42
    iget v3, p1, Les/s30$a;->k:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "parent_count"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 43
    iget v3, p1, Les/s30$a;->c:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "parent_id"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 44
    iget v3, p1, Les/s30$a;->i:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "checktime"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 45
    iget v3, p1, Les/s30$a;->j:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "dir_type"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 46
    iget-object v3, p1, Les/s30$a;->n:Ljava/lang/String;

    const-string v4, "url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 47
    iget v3, p1, Les/s30$a;->l:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "present"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 48
    iget-object v3, p1, Les/s30$a;->m:Ljava/lang/String;

    const-string v4, "urlid"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 49
    iget-object v3, p1, Les/s30$a;->o:Ljava/lang/String;

    const-string v4, "etag"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 50
    iget-object v3, p1, Les/s30$a;->p:Ljava/lang/String;

    const-string v4, "murl"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 51
    iget-object v3, p1, Les/s30$a;->q:Ljava/lang/String;

    const-string v4, "curl"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 52
    iget-object v3, p1, Les/s30$a;->r:Ljava/lang/String;

    const-string v4, "entry_id"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 53
    iget-object v3, p1, Les/s30$a;->s:Ljava/lang/String;

    const-string v4, "thumb_url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 54
    iget-object v3, p1, Les/s30$a;->t:Ljava/lang/String;

    const-string v4, "web_url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 55
    iget-object v3, p1, Les/s30$a;->u:Ljava/lang/String;

    const-string v4, "location_url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 56
    iget-object v3, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/String;

    iget v5, p1, Les/s30$a;->b:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v1

    iget-object p1, p1, Les/s30$a;->d:Ljava/lang/String;

    aput-object p1, v4, v2

    const-string p1, "file_cache"

    const-string v1, "server_id=? AND path=?"

    invoke-virtual {v3, p1, v0, v1, v4}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v1

    if-gtz v1, :cond_2

    .line 57
    iget-object v1, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, v2, v0}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    :cond_2
    :goto_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 3

    .line 28
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    return-void

    .line 29
    :cond_0
    new-instance v0, Landroid/content/ContentValues;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Landroid/content/ContentValues;-><init>(I)V

    const-string v1, "server"

    .line 30
    invoke-virtual {v0, v1, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 31
    iget-object p1, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v1, 0x0

    const-string v2, "server_id"

    invoke-virtual {p1, v2, v1, v0}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    return-void
.end method

.method public b(ILjava/lang/String;)I
    .locals 11

    .line 6
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 7
    :cond_0
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v2, 0x1

    if-le v0, v2, :cond_1

    const-string v0, "/"

    invoke-virtual {p2, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 8
    invoke-virtual {p2}, Ljava/lang/String;->length()I

    move-result v0

    sub-int/2addr v0, v2

    invoke-virtual {p2, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p2

    :cond_1
    const/4 v0, 0x0

    :try_start_0
    new-array v5, v2, [Ljava/lang/String;

    const-string v3, "id"

    aput-object v3, v5, v1

    const-string v6, "server_id=? AND path=?"

    const/4 v3, 0x2

    new-array v7, v3, [Ljava/lang/String;

    .line 9
    invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object p1

    aput-object p1, v7, v1

    aput-object p2, v7, v2

    .line 10
    iget-object v3, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "file_cache"

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 11
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 12
    invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 13
    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return p1

    :cond_2
    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return v1

    :catchall_0
    move-exception p1

    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 14
    throw p1
.end method

.method public b(II)Ljava/util/HashMap;
    .locals 21
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(II)",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/s30$a;",
            ">;"
        }
    .end annotation

    move-object/from16 v1, p0

    .line 15
    iget-object v0, v1, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v2, 0x0

    if-nez v0, :cond_0

    .line 16
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0, v2}, Ljava/util/HashMap;-><init>(I)V

    return-object v0

    :cond_0
    const/16 v0, 0x13

    :try_start_0
    new-array v6, v0, [Ljava/lang/String;

    const-string v0, "id"

    aput-object v0, v6, v2

    const-string v0, "path"

    const/4 v12, 0x1

    aput-object v0, v6, v12

    const-string v0, "isdir"

    const/4 v13, 0x2

    aput-object v0, v6, v13

    const-string v0, "hash"

    const/4 v14, 0x3

    aput-object v0, v6, v14

    const-string v0, "mtime"

    const/4 v15, 0x4

    aput-object v0, v6, v15

    const-string v0, "size"

    const/4 v11, 0x5

    aput-object v0, v6, v11

    const-string v0, "checktime"

    const/4 v10, 0x6

    aput-object v0, v6, v10

    const-string v0, "dir_type"

    const/4 v9, 0x7

    aput-object v0, v6, v9

    const-string v0, "url"

    const/16 v8, 0x8

    aput-object v0, v6, v8

    const-string v0, "present"

    const/16 v7, 0x9

    aput-object v0, v6, v7

    const-string v0, "urlid"

    const/16 v5, 0xa

    aput-object v0, v6, v5

    const-string v0, "etag"

    const/16 v4, 0xb

    aput-object v0, v6, v4

    const-string v0, "murl"

    const/16 v3, 0xc

    aput-object v0, v6, v3

    const-string v0, "curl"

    const/16 v3, 0xd

    aput-object v0, v6, v3

    const-string v0, "entry_id"

    const/16 v3, 0xe

    aput-object v0, v6, v3

    const-string v0, "thumb_url"

    const/16 v3, 0xf

    aput-object v0, v6, v3

    const-string v0, "web_url"

    const/16 v3, 0x10

    aput-object v0, v6, v3

    const-string v0, "parent_count"

    const/16 v3, 0x11

    aput-object v0, v6, v3

    const-string v0, "location_url"

    const/16 v3, 0x12

    aput-object v0, v6, v3

    const-string v0, "server_id=? AND parent_id=?"

    new-array v8, v13, [Ljava/lang/String;

    .line 17
    invoke-static/range {p1 .. p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v8, v2

    .line 18
    invoke-static/range {p2 .. p2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v16

    aput-object v16, v8, v12

    .line 19
    iget-object v4, v1, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v17, "file_cache"

    const/16 v18, 0x0

    const/16 v19, 0x0

    const/16 v20, 0x0

    const/16 v3, 0xb

    const/16 v3, 0xa

    move-object/from16 v5, v17

    const/16 v3, 0x9

    move-object v7, v0

    const/16 v0, 0x8

    const/4 v3, 0x7

    move-object/from16 v9, v18

    const/4 v0, 0x6

    move-object/from16 v10, v19

    const/4 v3, 0x5

    move-object/from16 v11, v20

    invoke-virtual/range {v4 .. v11}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz v4, :cond_2

    .line 20
    :try_start_1
    new-instance v5, Ljava/util/HashMap;

    invoke-direct {v5}, Ljava/util/HashMap;-><init>()V

    .line 21
    :goto_0
    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-eqz v6, :cond_1

    .line 22
    new-instance v6, Les/s30$a;

    invoke-direct {v6}, Les/s30$a;-><init>()V

    .line 23
    invoke-interface {v4, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v7

    iput v7, v6, Les/s30$a;->a:I

    move/from16 v7, p1

    .line 24
    iput v7, v6, Les/s30$a;->b:I

    move/from16 v8, p2

    .line 25
    iput v8, v6, Les/s30$a;->c:I

    .line 26
    invoke-interface {v4, v12}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v6, Les/s30$a;->d:Ljava/lang/String;

    .line 27
    invoke-interface {v4, v13}, Landroid/database/Cursor;->getInt(I)I

    move-result v9

    iput v9, v6, Les/s30$a;->e:I

    .line 28
    invoke-interface {v4, v14}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v6, Les/s30$a;->f:Ljava/lang/String;

    .line 29
    invoke-interface {v4, v15}, Landroid/database/Cursor;->getInt(I)I

    move-result v9

    iput v9, v6, Les/s30$a;->g:I

    .line 30
    invoke-interface {v4, v3}, Landroid/database/Cursor;->getInt(I)I

    move-result v9

    int-to-long v9, v9

    iput-wide v9, v6, Les/s30$a;->h:J

    .line 31
    invoke-interface {v4, v0}, Landroid/database/Cursor;->getInt(I)I

    move-result v9

    iput v9, v6, Les/s30$a;->i:I

    const/4 v9, 0x7

    .line 32
    invoke-interface {v4, v9}, Landroid/database/Cursor;->getInt(I)I

    move-result v10

    iput v10, v6, Les/s30$a;->j:I

    const/16 v10, 0x8

    .line 33
    invoke-interface {v4, v10}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v11

    iput-object v11, v6, Les/s30$a;->n:Ljava/lang/String;

    const/16 v11, 0x9

    .line 34
    invoke-interface {v4, v11}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v6, Les/s30$a;->l:I

    const/16 v0, 0xa

    .line 35
    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v6, Les/s30$a;->m:Ljava/lang/String;

    const/16 v3, 0xb

    .line 36
    invoke-interface {v4, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Les/s30$a;->o:Ljava/lang/String;

    const/16 v0, 0xc

    .line 37
    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v6, Les/s30$a;->p:Ljava/lang/String;

    const/16 v3, 0xd

    .line 38
    invoke-interface {v4, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Les/s30$a;->q:Ljava/lang/String;

    const/16 v0, 0xe

    .line 39
    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v6, Les/s30$a;->r:Ljava/lang/String;

    const/16 v3, 0xf

    .line 40
    invoke-interface {v4, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v6, Les/s30$a;->s:Ljava/lang/String;

    const/16 v0, 0x10

    .line 41
    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v6, Les/s30$a;->t:Ljava/lang/String;

    const/16 v3, 0x11

    .line 42
    invoke-interface {v4, v3}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    iput v0, v6, Les/s30$a;->k:I

    const/16 v0, 0x12

    .line 43
    invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v6, Les/s30$a;->u:Ljava/lang/String;

    .line 44
    iget-object v3, v6, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v5, v3, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/4 v0, 0x6

    const/4 v3, 0x5

    goto/16 :goto_0

    .line 45
    :cond_1
    invoke-static {v4}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return-object v5

    :catchall_0
    move-exception v0

    move-object v3, v4

    goto :goto_1

    :cond_2
    invoke-static {v4}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 46
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0, v2}, Ljava/util/HashMap;-><init>(I)V

    return-object v0

    :catchall_1
    move-exception v0

    const/4 v3, 0x0

    .line 47
    :goto_1
    invoke-static {v3}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 48
    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public b(Les/s30$a;)V
    .locals 5

    .line 49
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_2

    if-eqz p1, :cond_2

    iget-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    if-nez v0, :cond_0

    goto/16 :goto_0

    .line 50
    :cond_0
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-le v0, v2, :cond_1

    iget-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    const-string v3, "/"

    invoke-virtual {v0, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 51
    iget-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    sub-int/2addr v3, v2

    invoke-virtual {v0, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p1, Les/s30$a;->d:Ljava/lang/String;

    .line 52
    :cond_1
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 53
    iget v3, p1, Les/s30$a;->g:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "mtime"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 54
    iget-wide v3, p1, Les/s30$a;->h:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    const-string v4, "size"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    .line 55
    iget-object v3, p1, Les/s30$a;->f:Ljava/lang/String;

    const-string v4, "hash"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 56
    iget v3, p1, Les/s30$a;->i:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "checktime"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 57
    iget v3, p1, Les/s30$a;->c:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "parent_id"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 58
    iget-object v3, p1, Les/s30$a;->d:Ljava/lang/String;

    const-string v4, "path"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 59
    iget-object v3, p1, Les/s30$a;->n:Ljava/lang/String;

    const-string v4, "url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 60
    iget v3, p1, Les/s30$a;->j:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "dir_type"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 61
    iget v3, p1, Les/s30$a;->l:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "present"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 62
    iget-object v3, p1, Les/s30$a;->m:Ljava/lang/String;

    const-string v4, "urlid"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 63
    iget-object v3, p1, Les/s30$a;->o:Ljava/lang/String;

    const-string v4, "etag"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 64
    iget-object v3, p1, Les/s30$a;->p:Ljava/lang/String;

    const-string v4, "murl"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 65
    iget-object v3, p1, Les/s30$a;->q:Ljava/lang/String;

    const-string v4, "curl"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 66
    iget-object v3, p1, Les/s30$a;->r:Ljava/lang/String;

    const-string v4, "entry_id"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 67
    iget-object v3, p1, Les/s30$a;->s:Ljava/lang/String;

    const-string v4, "thumb_url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 68
    iget-object v3, p1, Les/s30$a;->t:Ljava/lang/String;

    const-string v4, "web_url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 69
    iget v3, p1, Les/s30$a;->k:I

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    const-string v4, "parent_count"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 70
    iget-object v3, p1, Les/s30$a;->u:Ljava/lang/String;

    const-string v4, "location_url"

    invoke-virtual {v0, v4, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/String;

    .line 71
    iget v4, p1, Les/s30$a;->b:I

    .line 72
    invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v1

    iget p1, p1, Les/s30$a;->a:I

    .line 73
    invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object p1

    aput-object p1, v3, v2

    .line 74
    iget-object p1, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v1, "server_id=? AND id=?"

    const-string v2, "file_cache"

    invoke-virtual {p1, v2, v0, v1, v3}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    :cond_2
    :goto_0
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 4

    .line 2
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-virtual {p0, p1}, Les/s30;->c(Ljava/lang/String;)I

    move-result p1

    if-gez p1, :cond_1

    return-void

    .line 4
    :cond_1
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "id="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    const-string v3, "server_id"

    invoke-virtual {v0, v3, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    .line 5
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "server_id="

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v1, "file_cache"

    invoke-virtual {v0, v1, p1, v2}, Landroid/database/sqlite/SQLiteDatabase;->delete(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

    return-void
.end method

.method public c(Ljava/lang/String;)I
    .locals 11

    .line 1
    iget-object v0, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iget-object v0, p0, Les/s30;->b:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result p1

    return p1

    :cond_1
    const/4 v0, 0x0

    const/4 v2, 0x1

    :try_start_0
    new-array v5, v2, [Ljava/lang/String;

    const-string v3, "id"

    aput-object v3, v5, v1

    const-string v6, "server= ?"

    new-array v7, v2, [Ljava/lang/String;

    aput-object p1, v7, v1

    .line 4
    iget-object v3, p0, Les/s30;->a:Landroid/database/sqlite/SQLiteDatabase;

    const-string v4, "server_id"

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    invoke-virtual/range {v3 .. v10}, Landroid/database/sqlite/SQLiteDatabase;->query(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 5
    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 6
    invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    .line 7
    iget-object v2, p0, Les/s30;->b:Ljava/util/HashMap;

    monitor-enter v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 8
    :try_start_1
    iget-object v3, p0, Les/s30;->b:Ljava/util/HashMap;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v3, p1, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 9
    monitor-exit v2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 10
    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return v1

    :catchall_0
    move-exception p1

    .line 11
    :try_start_2
    monitor-exit v2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :try_start_3
    throw p1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    .line 12
    :cond_2
    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    return v1

    :catchall_1
    move-exception p1

    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Landroid/database/Cursor;)V

    .line 13
    throw p1
.end method
